<template>
	<view>
		<view class="head">
			<view class="title in">
				敢于承诺：
			</view>
			<view class="tag in">
				<view class="list">
					<image src="../../static/Home/icon_1.png" mode=""></image>
					官方自营
				</view>
				<view class="list">
					<image src="../../static/Home/icon_1.png" mode=""></image>
					专业培训
				</view>
				<view class="list">
					<image src="../../static/Home/icon_1.png" mode=""></image>
					平台监管
				</view>
			</view>
		</view>
		<view class="main in">
			<!--  地址 -->
			<view class="title ">
				<view class="image">
					<image class="img" src="../../static/Home/icon01.png" mode=""></image>
				</view>
				<view class="tit">
					上海
					<view class="image1">
						<image class="img" src="../../static/Estate/icon.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="tit">
				家庭保洁
			</view>
			<!-- 列表 -->
			<view class="lists">
				<view class="list" v-for="(item,index) in 4" :key='index' @click="router">
					<view class="left">
						<image src="../../static/shop/1595657049599668876.jpg" mode=""></image>
					</view>
					<view class="right">
						<!-- 标题 -->
						<view class="name">
							日常家居保洁3小时
						
						</view>
						<!-- 次数 -->
						<view class="num">
							已抢77次
						</view>
						<!-- 金额 -->
						<view class="money">
							￥149 <view class="span">起</view>
							<view class="money1">
								￥245
							</view>
						</view>
					</view>
				</view>

			</view>
			<view class="tit">
				家电清洗
			</view>
			<!-- 列表 -->
			<view class="lists">
				<view class="list" v-for="(item,index) in 4" :key='index'>
					<view class="left">
						<image src="../../static/shop/1595657049599668876.jpg" mode=""></image>
					</view>
					<view class="right">
						<!-- 标题 -->
						<view class="name">
							日常家居保洁3小时
						
						</view>
						<!-- 次数 -->
						<view class="num">
							已抢77次
						</view>
						<!-- 金额 -->
						<view class="money">
							￥149 <view class="span">起</view>
							<view class="money1">
								￥245
							</view>
						</view>
					</view>
				</view>
			
			</view>
		</view>
		<!-- 底部 -->
		<view class="footer">
			富同家政 安全保障
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			router(){
				uni.navigateTo({
					url:'../serve/serve'
				})
			}
		}
	}
</script>

<style lang="scss">
	.in {
		width: 90%;
		margin: auto;
	}

	.head {
		background-color: #00B7FF;
		height: 320rpx;

		.title {
			font-size: 36rpx;
			color: #FFFFFF;
		}

		.tag {
			margin-top: 30rpx;
			display: flex;

			.list {
				display: flex;
				color: #FFFFFF;
			
				margin-right: 40rpx;
				
				image {
					margin-top: 8rpx;
					width: 25rpx;
					height: 25rpx;
				}
			}
		}
	}

	.main {
		margin-top: -170rpx;
		background-color: #FFFFFF;
		border-radius: 10rpx;
				box-shadow: 0 0 10rpx 0rpx #dedede;
		.title {
			padding: 10rpx;
			display: flex;
			.image {
				width: 40rpx;
				height: 40rpx;

			}
			.tit {
				color: #A6A6A6;
				display: flex;

				.image1 {
					width: 25rpx;
					height: 20rpx;
					margin-left: 5rpx;
				}
			}
		}

		.tit {
			font-size: 32rpx;
			width: 92%;
			margin: auto;
		}

		.lists {
			padding: 20rpx;
			.list {
				margin-bottom: 10rpx;
				display: flex;
				.left {
					image {
						width: 250rpx;
						height: 200rpx;
						border-radius: 15rpx;
					}
				}

				.right {
					margin-left: 40rpx;
					.name{
						height:80rpx;
						font-size: 32rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 2;
					}
					.num{
						color: #999;
					}
					.money{
						display: flex;
						color: #FFA911;
						margin-top: 35rpx;
						.span{
							color: #999;
							font-size: 22rpx;
						}
						.money1{
							margin-left: 90rpx;
							color: #999;
							text-decoration: line-through
						}
					}
				}
			}

		}
	}
	.footer{
		margin: auto;
		text-align: center;
		position: relative;
		padding: 30rpx;
		color: #A6A6A6 ;
	}
	.footer::after{
		content: '';
		position: absolute;
		width: 200rpx;
		height:3rpx;
	background-color: #E5E5E5 ;
		right: 40rpx;
		top: 50rpx;
	}
	.footer::before{
		content: '';
		position: absolute;
		width: 200rpx;
		height: 3rpx;
		background-color: #E5E5E5 ;
		left: 40rpx;
		top: 50rpx;
	}
</style>
